package hello

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func GetServerVersionInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().ServerVersion,
	})
}

func GetServerInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Server,
	})
}

func GetClientInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Client,
	})
}

func GetMicroConferenceInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().MicroConference,
	})
}

func GetH5ServerInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().H5Server,
	})

}

func GetCallRecordServicesInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().CallRecordServices,
	})

}

func GetShareMeetingInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		"data": GetConfigStruct().ShareMeeting,
	})
}

func GetConferenceInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Conference,
	})
}

func GetLvsInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Lvs,
	})

}

func GetExtendServerInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().ExtendServer,
	})

}

func GetSyncServicesInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().SyncServices,
	})

}

func GetAgentInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Agent,
	})

}

func GetDiversionInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Diversion,
	})

}
func GetDdioServerInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().DdioServer,
	})

}

func GetForceUpdateInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().ForceUpdate,
	})

}

func GetDataserverInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Dataserver,
	})
}

func GetVersionMarkInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().VersionMark,
	})
}

func GetVersionExplainInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().VersionExplain,
	})
}

func GetRouterInfo(context *gin.Context) {
	context.JSON(http.StatusOK, gin.H{
		"code": http.StatusOK,
		//"reason": "get data success",
		"data": GetConfigStruct().Router,
	})
}
